from django.urls import path
from rest_framework.routers import SimpleRouter

from doctor import views

urlpatterns = [
    path('list/', views.DoctorView.as_view()),
    path('depot/', views.DoctorListView.as_view()),
    path('upddepot/', views.UpdDepot.as_view()),
    path('deldoctor/', views.DelDoctor.as_view()),
    path('adddoctor/', views.AddDoctor.as_view()),
    path('upddoctor/', views.UpdDoctor.as_view()),
    path('longlist/', views.LongDoctorView.as_view()),


    path('conlist/', views.ConsultationView.as_view()),
    path('addcon/', views.AddConView.as_view()),
    path('updcon/', views.UpdConView.as_view()),
]
router = SimpleRouter()
router.register('major', views.MajorView)
router.register('rank', views.RankView)
router.register('dept', views.DeptView)
urlpatterns += router.urls
